<?php
/**
 * Make sure we have right sorting column and value (asc,desc)
 * 
 * @author Mitchelle Pascual <mitch.pascual@gmail.com>
 * $date 04/01/2010
 *
 */
class Owg_List_SortInfo
{
	private $m_sColumn;
	private $m_sAsc;
	
	
	public function __construct($p_sColumn, $p_sAsc)
	{
		self::setColumn($p_sColumn);
		self::setAsc($p_sAsc);
	}
	
	
	public function getColumn()
	{
		return $this->m_sColumn;
	}
	
	public function setColumn($p_sColumn)
	{
		$this->m_sColumn = $p_sColumn;
		return $this;
	}
	
	
	public function getAsc()
	{
		if ($this->m_sAsc == 'false')
			return false;
		else
			return true;
	}
	
	public function setAsc($p_sAsc)
	{
		$this->m_sAsc = $p_sAsc;
		return $this;
	}
	
	
}